﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />

<div class="modal-dialog" role="document" style="width: 1200px;">
  <div class="modal-content">
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      <h4 class="modal-title"><fmt:message key="assessor.471" /></h4>
    </div>
    
    <div class="modal-body competency-box">
      
      <div class="panel panel-default">
        <div class="panel-heading competency-heading">员工会谈</div>
        <c:forEach var="score" items="${competencyScores['Colleague Meeting']}">
          <div class="panel-body">
            <div class="competency-item">
              <p class="delegate-name"><fmt:message key="assessor.446" />&nbsp;&nbsp;<span class="color-orange">${delegate.name}</span></p>
              <div class="meeting-title">
                <span class="meeting-name"><fmt:message key="${score.sessionCompetency.competencyMessage}"/></span> 
                <p class="assessor-name"><fmt:message key="assessor.name" />:&nbsp;&nbsp;
                  <span class="color-orange">${not empty score.sessionExercise ? score.sessionExercise.assessor.name : score.sessionInBasket.assessor.name}</span>
                </p>
              </div>
              <div class="row behaviors-text">
                <div class="col-xs-6">
                  <p class="text-center color-orange"><fmt:message key="assessor.327" /></p>
                  <div class="autosize scorllbar-textarea" style="word-wrap: break-word; min-height: 100px;">${score.effective}</div>
                </div>
                <div class="col-xs-6">
                  <p class="text-center color-orange"><fmt:message key="assessor.328" /></p>
                  <div class="autosize scorllbar-textarea" style="word-wrap: break-word; min-height: 100px;">${score.inEffective}</div>
                </div>
              </div>
              
              <div class="question-box">
                <div class="item"><fmt:message key="${score.sessionCompetency.keyBehavior}" /></div>
              </div>
            </div>
          </div>
        </c:forEach>
      </div>
      <div class="panel panel-default">
        <div class="panel-heading competency-heading">宾客会谈</div>
        <c:forEach var="score" items="${competencyScores['Guest Meeting']}">
          <div class="panel-body">
            <div class="competency-item">
              <p class="delegate-name"><fmt:message key="assessor.446" />&nbsp;&nbsp;<span class="color-orange">${delegate.name}</span></p>
              <div class="meeting-title">
                <span class="meeting-name"><fmt:message key="${score.sessionCompetency.competencyMessage}"/></span> 
                <p class="assessor-name"><fmt:message key="assessor.name" />:&nbsp;&nbsp;
                  <span class="color-orange">${not empty score.sessionExercise ? score.sessionExercise.assessor.name : score.sessionInBasket.assessor.name}</span>
                </p>
              </div>
              <div class="row behaviors-text">
                <div class="col-xs-6">
                  <p class="text-center color-orange"><fmt:message key="assessor.327" /></p>
                  <div class="autosize scorllbar-textarea" style="word-wrap: break-word; min-height: 100px;">${score.effective}</div>
                </div>
                <div class="col-xs-6">
                  <p class="text-center color-orange"><fmt:message key="assessor.328" /></p>
                  <div class="autosize scorllbar-textarea" style="word-wrap: break-word; min-height: 100px;">${score.inEffective}</div>
                </div>
              </div>
              
              <div class="question-box">
                <div class="item"><fmt:message key="${score.sessionCompetency.keyBehavior}" /></div>
              </div>
            </div>
          </div>
        </c:forEach>
      </div>
      <div class="panel panel-default">
        <div class="panel-heading competency-heading">业主会谈</div>
        <c:forEach var="score" items="${competencyScores['Owner Meeting']}">
          <div class="panel-body">
            <div class="competency-item">
              <p class="delegate-name"><fmt:message key="assessor.446" />&nbsp;&nbsp;<span class="color-orange">${delegate.name}</span></p>
              <div class="meeting-title">
                <span class="meeting-name"><fmt:message key="${score.sessionCompetency.competencyMessage}"/></span> 
                <p class="assessor-name"><fmt:message key="assessor.name" />:&nbsp;&nbsp;
                  <span class="color-orange">${not empty score.sessionExercise ? score.sessionExercise.assessor.name : score.sessionInBasket.assessor.name}</span>
                </p>
              </div>
              <div class="row behaviors-text">
                <div class="col-xs-6">
                  <p class="text-center color-orange"><fmt:message key="assessor.327" /></p>
                  <div class="autosize scorllbar-textarea" style="word-wrap: break-word; min-height: 100px;">${score.effective}</div>
                </div>
                <div class="col-xs-6">
                  <p class="text-center color-orange"><fmt:message key="assessor.328" /></p>
                  <div class="autosize scorllbar-textarea" style="word-wrap: break-word; min-height: 100px;">${score.inEffective}</div>
                </div>
              </div>
              
              <div class="question-box">
                <div class="item"><fmt:message key="${score.sessionCompetency.keyBehavior}" /></div>
              </div>
            </div>
          </div>
        </c:forEach>
      </div>
      <div class="panel panel-default">
        <div class="panel-heading competency-heading">高管汇报</div>
        <c:forEach var="score" items="${competencyScores['OLT Meeting']}">
          <div class="panel-body">
            <div class="competency-item">
              <p class="delegate-name"><fmt:message key="assessor.446" />&nbsp;&nbsp;<span class="color-orange">${delegate.name}</span></p>
              <div class="meeting-title">
                <span class="meeting-name"><fmt:message key="${score.sessionCompetency.competencyMessage}"/></span> 
                <p class="assessor-name"><fmt:message key="assessor.name" />:&nbsp;&nbsp;
                  <span class="color-orange">${not empty score.sessionExercise ? score.sessionExercise.assessor.name : score.sessionInBasket.assessor.name}</span>
                </p>
              </div>
              <div class="row behaviors-text">
                <div class="col-xs-6">
                  <p class="text-center color-orange"><fmt:message key="assessor.327" /></p>
                  <div class="autosize scorllbar-textarea" style="word-wrap: break-word; min-height: 100px;">${score.effective}</div>
                </div>
                <div class="col-xs-6">
                  <p class="text-center color-orange"><fmt:message key="assessor.328" /></p>
                  <div class="autosize scorllbar-textarea" style="word-wrap: break-word; min-height: 100px;">${score.inEffective}</div>
                </div>
              </div>
              
              <div class="question-box">
                <div class="item"><fmt:message key="${score.sessionCompetency.keyBehavior}" /></div>
              </div>
            </div>
          </div>
        </c:forEach>
      </div>
      
      <div class="panel panel-default">
        <div class="panel-heading competency-heading">收件箱练习</div>
        <c:forEach var="score" items="${competencyScores['In-basket']}">
          <div class="panel-body">
            <div class="competency-item">
              <p class="delegate-name"><fmt:message key="assessor.446" />&nbsp;&nbsp;<span class="color-orange">${delegate.name}</span></p>
              <div class="meeting-title">
                <span class="meeting-name"><fmt:message key="${score.sessionCompetency.competencyMessage}"/></span> 
                <p class="assessor-name"><fmt:message key="assessor.name" />:&nbsp;&nbsp;
                  <span class="color-orange">${not empty score.sessionExercise ? score.sessionExercise.assessor.name : score.sessionInBasket.assessor.name}</span>
                </p>
              </div>
              <div class="row behaviors-text">
                <div class="col-xs-6">
                  <p class="text-center color-orange"><fmt:message key="assessor.327" /></p>
                  <div class="autosize scorllbar-textarea" style="word-wrap: break-word; min-height: 100px;">${score.effective}</div>
                </div>
                <div class="col-xs-6">
                  <p class="text-center color-orange"><fmt:message key="assessor.328" /></p>
                  <div class="autosize scorllbar-textarea" style="word-wrap: break-word; min-height: 100px;">${score.inEffective}</div>
                </div>
              </div>
              
              <div class="question-box">
                <div class="item"><fmt:message key="${score.sessionCompetency.keyBehavior}" /></div>
              </div>
            </div>
          </div>
        </c:forEach>
      </div>
      
      <%-- <c:forEach var="competencyScore" items="${competencyScores}">
        <div class="panel panel-default">
          <div class="panel-heading competency-heading">${competencyScore.key eq 'Colleague Meeting' ? '员工会谈' : competencyScore.key eq 'Guest Meeting' ? '宾客会谈' : competencyScore.key eq 'Owner Meeting' ? '业主会谈' : competencyScore.key eq 'OLT Meeting' ? '高管汇报' : '收件箱练习'}</div>
          <c:forEach var="score" items="${competencyScores[competencyScore.key]}">
            <div class="panel-body">
              <div class="competency-item">
                <p class="delegate-name"><fmt:message key="assessor.446" />&nbsp;&nbsp;<span class="color-orange">${delegate.name}</span></p>
                <div class="meeting-title">
                  <span class="meeting-name">${score.sessionCompetency.competencyName}</span> 
                  <p class="assessor-name"><fmt:message key="assessor.name" />:&nbsp;&nbsp;
                    <span class="color-orange">${not empty score.sessionExercise ? score.sessionExercise.assessor.name : score.sessionInBasket.assessor.name}</span>
                  </p>
                </div>
                <div class="row behaviors-text">
                  <div class="col-xs-6">
                    <p class="text-center color-orange"><fmt:message key="assessor.327" /></p>
                    <div class="autosize scorllbar-textarea" style="word-wrap: break-word; min-height: 100px;">${score.effective}</div>
                  </div>
                  <div class="col-xs-6">
                    <p class="text-center color-orange"><fmt:message key="assessor.328" /></p>
                    <div class="autosize scorllbar-textarea" style="word-wrap: break-word; min-height: 100px;">${score.inEffective}</div>
                  </div>
                </div>
                
                <div class="question-box">
                  <div class="item"><fmt:message key="${score.sessionCompetency.keyBehavior}" /></div>
                </div>
              </div>
            </div>
          </c:forEach>
        </div>
      </c:forEach> --%>
    </div>
  </div>
</div>